import React,{useState} from 'react';
import { Todolist } from './Todolist';

const App = ()=>{
  const [isShow,setIsShow] = useState(true);
    return(
      <div className="App">
        <button onClick={()=>{setIsShow(!isShow)}}>显示/隐藏</button>
        {isShow?<Todolist />:''}
      </div>
    );
}

export default App;